package com.my.code.testcode.stream.taobao.shopex;

import java.util.ArrayList;
import java.util.List;

public class CartService {

    private static List<Goods> goods = new ArrayList<>();

    public static List<Goods> getGoods(){
        goods.add(new Goods("苹果",12.3,10,GoodsType.EAT));
        goods.add(new Goods("香蕉",11.3,20,GoodsType.EAT));
        goods.add(new Goods("葡萄",15.3,15,GoodsType.EAT));
        goods.add(new Goods("JAVA",53.3,30,GoodsType.BOOKS));
        goods.add(new Goods("Python",22.3,30,GoodsType.BOOKS));
        goods.add(new Goods("C++",14.3,30,GoodsType.BOOKS));

        return goods;
    }
}
